import { Draw } from "../../../Draw/Draw";

export function setGroupDraggable(draw: Draw, draggable: boolean) {
  const layer = draw.getLayer();
  if (!layer) return;

  const baseGraph = draw.getKonvaGraph().getBaseGraph();
  baseGraph.forEach((node) => node.setAttrs({ draggable }));
}
